package com.design.designmode.struct.decorate;

/**
 * @author hxl
 * @since 2023-04-17
 */
public class DecoratorA extends Decorator {


    public DecoratorA(Person person) {
        this.person = person;
    }

    @Override
    public void operate() {
        person.operate(); // 原本的职责
        System.out.println("DecoratorA");
    }
}
